<template>
	<view>
		<!-- banner -->
		<view class="allbanner" style="position: relative;">
			<view class="bannercenter flexcolumn">
				<view class="bannerimgtext">
					<image src="@/static/image/system/f7xn.png" mode="" class=""></image>
				</view>
				<view class="bannertext3 margin_top">法律解释</view>
			</view>
			<image :src="topimg" mode=""></image>
		</view>
		<!-- 内容 -->
		<view class="mainpadding">
			<view class="block mainpadding">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</view>

	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")

	export default {
		data() {
			return {
				listid: "",
				topimg: "",
				dataAll: {},
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.getDetail()
			this.getbanner()
		},
		methods: {
			getbanner() {
				httpRequest.request('/api/index/getAdvertiseList', 'POST', {
					advertise_position_id: 12,
					is_more: 2
				}, false, false, true).then(res => {
					this.topimg = res.data.image_text
				})
			},
			getDetail() {
				httpRequest.request('/api/index/flfgDetail', 'GET', {
					id: this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
				})
			},
			// 跳转搜索
			tzss() {
				uni.navigateTo({
					url: '/pages/index/falv'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.block {
		border-radius: 30rpx;
		background-color: #F4F4F4;

	}

	.fudongdw {
		position: absolute;
		bottom: 68rpx;
		left: 36%;
	}
</style>